import BasePath from "../config";

const memberMan = {
    name: 'member',
    path: `${BasePath}/member-management/member`,
    redirect: `${BasePath}/member-management/member-list-table`,
    component: () => import(/* webpackChunkName: "member-management-member" */ '@/views/home/operate-panel/member-management/tab-control.vue'),
    props: { tabType: "member" },
    meta: { keepAlive: false },
    children:[{
        name: 'member-list',
        path: `${BasePath}/member-management/member-list-table`,
        component: () => import(/* webpackChunkName: "member-list" */ '@/views/home/operate-panel/member-management/member-list-table.vue'),
    }]
}
const pointMan = {
    path: `${BasePath}/member-management/points`,
    name: 'points',
    component: () => import(/* webpackChunkName: "member-management-points" */ '@/views/home/operate-panel/member-management/tab-control.vue'),
    props: { tabType: "points" },
    meta: { keepAlive: false },
    children: [{
        path: `${BasePath}/member-management/points-list-table`,
        name: 'points-list',
        component: () => import(/* webpackChunkName: "points-list-table" */ '@/views/home/operate-panel/member-management/points-list-table.vue'),
    }]
}

export default {
    path: `${BasePath}/member-management`,
	name: 'member-management',
	redirect:`${BasePath}/member-management/member-list`,
    // component: () => import('@/views/home/operate-panel/member-management/tab-control.vue'),
    component: () => import(/* webpackChunkName: "member-management" */ '@/components/home/emptyLayout.vue'),
    meta: {
        keepAlive: false
    },
    children: [
        memberMan,
        pointMan
    ]
}
